package com.sqx.modules.pay.service;


import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.sqx.common.utils.PageUtils;
import com.sqx.common.utils.Result;
import com.sqx.modules.app.entity.UserEntity;
import com.sqx.modules.pay.entity.CashOut;

import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public interface CashOutService extends IService<CashOut> {

    PageUtils selectCashOutList(Map<String, Object> params);

    int saveBody(CashOut cashOut);

    int update(CashOut cashOut);

    CashOut selectById(Long id);

    void cashOutSuccess(UserEntity userByWxId, String date, String money, String payWay, String url,Integer classify,Integer userType);

    List<CashOut> selectCashOutLimit3();

    void refundSuccess(UserEntity userByWxId, String date, String money, String url, String content,Integer userType);

    Double selectCashOutSum(Long userId, String time);

    Double sumMoney(String time, Integer flag);

    Integer countMoney(String time, Integer flag);

    Integer stayMoney(String time, Integer flag);

    void updateMayMoney(int i, Long userId, Double money);

    Result cashMoney(Long userId, Double money,Integer classify,Integer userType);

    HashMap<String,Object> payMember(String time, Integer flag);

    IPage<CashOut> selectAdminHelpProfit(Integer page, Integer limit, String startTime, String endTime, CashOut cashOut);

    HashMap<String,Object> statisticsMoney(String time, Integer flag);

    HashMap<String,Object> commissionCensus(String time, Integer flag);
}
